from classfile.attribute_info import AttributeInfo


class ConstantValueAttribute(AttributeInfo):
    def __init__(self):
        super().__init__()
        self.constantValueIndex = 0

    def readInfo(self, clsReader):
        self.constantValueIndex = int.from_bytes(clsReader.readU16(), "big")

